package com.flower.enjoyment.flower.entityDo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel(value = "订单信息对象")
public class OrderInfoDo {
    @ApiModelProperty(value = "ID")
    private String id;
    @ApiModelProperty(value = "订单编号")
    private String orderNo;
    @ApiModelProperty(value = "用户昵称")
    private String userName;
    @ApiModelProperty(value = "商铺名称")
    private String shopName;
    @ApiModelProperty(value = "商铺ID")
    private String shopId;
    @ApiModelProperty(value = "商铺图标")
    private String shopImg;
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createTime;
    @ApiModelProperty(value = "支付时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date payTime;
    @ApiModelProperty(value = "订单状态 0待支付，1已支付，2取消，3超时取消")
    private Integer status;
    @ApiModelProperty(value = "最后支付时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date latestPayTime;
    @ApiModelProperty(value = "总金额")
    private Double totalAmount;
    @ApiModelProperty(value = "折扣金额")
    private Double discountAmount;
    @ApiModelProperty(value = "折扣")
    private Double discount;
    @ApiModelProperty(value = "实际支付金额")
    private Double actualAmount;
    @ApiModelProperty(value = "是否已经评价")
    private Integer isAssess;
    @ApiModelProperty(value = "服务项目")
    private String serviceName;
    @ApiModelProperty(value = "支付方式，0花享卡，1微信")
    private Integer payType;
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date updateTime;


}